package com.atguigu.mybatis.pojo;


public class Emp {

  private long empId;
  private String empName;
  private long age;
  private String gender;
  private Dept dept;


  public long getEmpId() {
    return empId;
  }

  public void setEmpId(long empId) {
    this.empId = empId;
  }

  public String getEmpName() {
    return empName;
  }

  public void setEmpName(String empName) {
    this.empName = empName;
  }

  public long getAge() {
    return age;
  }

  public void setAge(long age) {
    this.age = age;
  }

  public String getGender() {
    return gender;
  }

  public void setGender(String gender) {
    this.gender = gender;
  }

  public Dept getDept() {
    return dept;
  }

  public void setDept(Dept dept) {
    this.dept = dept;
  }


  public Emp() {
  }

  public Emp(long empId, String empName, long age, String gender, Dept dept) {
    this.empId = empId;
    this.empName = empName;
    this.age = age;
    this.gender = gender;
    this.dept = dept;
  }

  @Override
  public String toString() {
    return "Emp{" +
            "empId=" + empId +
            ", empName='" + empName + '\'' +
            ", age=" + age +
            ", gender='" + gender + '\'' +
            ", dept=" + dept +
            '}';
  }
}
